linear searc in python